import request from '@/utils/request'
export function list(params) {
  return request({
    url:'/admin/warehouse/list',
    method:'get',
    params:params

  })
}

export function save(data,params) {
  return request({
    url:'/admin/warehouse/save',
    method:'post',
    data:data,
    params:params
  })
}

export function find(id) {
  return request({
    url: '/admin/warehouse/find/' + id,
    method: 'get'
  })
}

export function update(data,params) {
  return request({
    url:'/admin/warehouse/update',
    method:'post',
    data:data,
    params:params
  })
}


export function confirm(id) {
  return request({
    url: '/admin/warehouse/confirm/' + id,
    method: 'post'
  })
}

export function cancel(id) {
  return request({
    url: '/admin/warehouse/cancel/' + id,
    method: 'post'
  })
}

export function audit(id) {
  return request({
    url: '/admin/warehouse/audit/' + id,
    method: 'post'
  })
}

export function disAudit(id) {
  return request({
    url: '/admin/warehouse/disAudit/' + id,
    method: 'post'
  })
}
export function del(ids) {
  return request({
    url: '/admin/warehouse/del/' + ids,
    method: 'post'
  })
}

export function print(ids) {
  return request({
    url: '/admin/warehouse/print/' + ids,
    method: 'get'
  })
}
